package com.hmall.cart;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
// 开启OpenFeign的功能，并且扫描FeignClient所在包，并且指定默认配置（可配置日志级别）
//@EnableFeignClients(clients = ItemFeignClient.class)
//@EnableFeignClients(basePackages = "com.hmall.api.client")
//@EnableFeignClients(defaultConfiguration = DefaultFeignConfig.class)
@MapperScan("com.hmall.cart.mapper")
@SpringBootApplication
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}